package org.umlviewer.xmiexporter;

import org.jdom2.Element;
import org.jdom2.Namespace;
import org.umlviewer.model.Constants;
import org.umlviewer.model.Relationship;
import org.umlviewer.model.UMLElement;

/**
 *
 * @author Rafa
 */
public abstract class RelationExporter extends UMLElement{

    private Relationship rel;
    private int tipo; //1- si es completo, 2- si es solo una referencia
    
    public RelationExporter(Relationship r, int type){
        super();
        this.tipo = type;
        this.rel = r;
    }

    public Relationship getRel() {
        return rel;
    }

    public void setRel(Relationship rel) {
        this.rel = rel;
    }

    public int getTipo() {
        return tipo;
    }

    public void setTipo(int tipo) {
        this.tipo = tipo;
    }
    
    public abstract Element xmiSerialize();
    
}
